package com._520it.crm.web.controller;


import com._520it.crm.page.PageResult;
import com._520it.crm.query.AuditInsuranceQueryObject;
import com._520it.crm.service.IAuditInsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/auditInsurance")
public class AuditInsuranceController {

    @Autowired
    private IAuditInsuranceService auditInsuranceService;


    @RequestMapping("")
    public String index(){
        return "auditInsurance";
    }

    @RequestMapping("list")
    @ResponseBody
    public PageResult list(AuditInsuranceQueryObject qo){
        PageResult result = null;
        result = auditInsuranceService.query(qo);
        return result;
    }



}
